package com.ninjia.api.controller;

import com.ninjia.common.pojo.APIResult;
import com.ninjia.common.pojo.Page;
import com.ninjia.core.services.UserServices;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    UserServices userServices;

    @ApiOperation(value = "获取所有用户")
    @RequestMapping(value="", method = RequestMethod.GET)
    public APIResult getList(Page page) {
        throw new RuntimeException();
       // return new APIResult(userServices.findAll(page));
    }
}
